package com.hujiang.basic.search.model;

import com.alibaba.fastjson.JSONObject;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class HJDeleteResponse extends HJEsResponse {

    private static final long serialVersionUID = 1L;

    private Boolean deleted;
    
    private JSONObject source;

    @Override
    public boolean equals(Object o)
    {
        if ( this == o )
        {
            return true;
        }
        if ( o == null || getClass() != o.getClass() )
        {
            return false;
        }
        HJDeleteResponse deleteResponse = (HJDeleteResponse)o;
        if(deleteResponse.getId()!=this.getId()){
            return false;
        }
        if(deleteResponse.getDeleted()!=this.getDeleted()){
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        return this.hashCode();
    }

}
